package test.enba.mq.consumer.rabbitmq.topic;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class TopicExchangeConsumer {

  @RabbitListener(queues = "topic-queue-a")
  public void receiveMessageFromQueueA(String message) {
    System.out.println("consumer1 Queue A received: " + message);
  }
}
